﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DC_Sanction2.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.DC_Sanction2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">


 <script type="text/javascript" src="../../Scripts/DatePicker.js">
 
  </script>

        <link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" />
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">           
           function onTextChange(sender) {  
               if (sender.get_value() == "") {
                   sender.set_text("");
               }
           }
        </script>
        </telerik:RadCodeBlock>
    <!-- end of custom head section -->
</head>
<body >
    <form id="mainForm" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
         <!--content start -->
         <!--<div style="background: url(../Images/Buttons/bg.jpg) no-repeat;">-->            
            <table width = "980px" class="tableHeader">
            <tr>
            <td >ข้อมูลผู้กระทำผิด<asp:Label ID="lblEmpSeq" runat="server" 
                                    Text='<%# DataBinder.Eval( Container, "DataItem.Employee.Sequence"  ) %>' 
                                    Visible="False"></asp:Label>
                            <asp:Label ID="lblSta" runat="server" Visible="False"></asp:Label>
                            <asp:Label ID="lbl_cmd_dtls_seq" runat="server" Visible="False"></asp:Label>
                            </td>
            </tr>
            </table>
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="RadGrid1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="btnSearch">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="btnShowAll">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="rcb1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                            <telerik:AjaxUpdatedControl ControlID="rcb1" /> 
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
            <asp:Panel ID="Panel5" runat="server" Height="400px" Width = "1060" ScrollBars ="Auto">
                    <asp:Label ID="lbl_req_seq" runat="server" Text="lbl_inv_seq" Visible="False"></asp:Label>
                    <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="True" 
                        AllowFilteringByColumn="True" AllowMultiRowEdit="True" 
                        AllowMultiRowSelection="True" AllowPaging="True" AllowSorting="True" 
                        AutoGenerateColumns="False" EnableAJAX="True" EnableAJAXLoadingTemplate="True" 
                        GridLines="None" OnItemCommand="RadGrid1_ItemCommand" 
                        onitemcreated="RadGrid1_ItemCreated" onitemdatabound="RadGrid1_ItemDataBound" 
                        onneeddatasource="RadGrid1_NeedDataSource" Skin="Outlook" Width="100%">
                        <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" 
                            ClientDataKeyNames="cmd_dtls_seq" CommandItemDisplay="Top" DataKeyNames="cmd_dtls_seq" 
                            InsertItemPageIndexAction="ShowItemOnCurrentPage" 
                            NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                            <CommandItemTemplate>
                                <table width="100%">
                                    <tr>
                                        <td>
                                           
                                        </td>
                                        <td align="right">
                                        </td>
                                    </tr>
                                </table>
                            </CommandItemTemplate>
                            <RowIndicatorColumn>
                                <HeaderStyle Width="15px" />
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn>
                                <HeaderStyle Width="15px" />
                            </ExpandCollapseColumn>
                            <Columns>
                            
                            
                              <telerik:GridEditCommandColumn ButtonType="ImageButton" 
                                EditText="คลิกเพื่อแก้ไขข้อมูล">
                         
                            </telerik:GridEditCommandColumn>
                               
                            
                             
                                <telerik:GridBoundColumn DataField="req_seq" DataType="System.Int32" 
                                    Display="False" HeaderText="req_seq" ReadOnly="True" UniqueName="req_seq" 
                                    Visible="False">
                                </telerik:GridBoundColumn>
                                
                        
                             
                             
                             
                                <telerik:GridTemplateColumn AutoPostBackOnFilter="true" 
                                    CurrentFilterFunction="Contains" FilterControlWidth="100%" 
                                    HeaderText="ชื่อ - สกุล" ShowFilterIcon="False">
                                    <ItemTemplate>
                                   
                                        <%# Eval(" full_name")%> 
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" Width="150px" />
                                </telerik:GridTemplateColumn>
                                
                                
                                
                                
                                                       <telerik:GridTemplateColumn AutoPostBackOnFilter="true" 
                                    CurrentFilterFunction="Contains" FilterControlWidth="100%" 
                                    HeaderText="เลขที่ตำแหน่ง" ShowFilterIcon="False">
                                    <ItemTemplate>
                                        <%# Eval("pos_ref")%>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" Width="150px" />
                                </telerik:GridTemplateColumn>
                                
                                
                                
                                
                                
                                <telerik:GridTemplateColumn 
                                DataField= "pos_name"
                                AutoPostBackOnFilter="true" 
                                    CurrentFilterFunction="Contains" FilterControlWidth="100%" 
                                    HeaderText="ตำแหน่ง" ShowFilterIcon="False">
                                    <ItemTemplate>
                                        <%# Eval("pos_name")%>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" Width="150px" />
                                </telerik:GridTemplateColumn>
                                
                                
                                
                                
                                
                                <telerik:GridTemplateColumn
                               DataField= "class_name"
                                 AutoPostBackOnFilter="true" 
                                    CurrentFilterFunction="Contains" FilterControlWidth="100%" 
                                    HeaderText="ระดับ" ShowFilterIcon="False">
                                    <ItemTemplate>
                                        <%# Eval("class_name")%>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" Width="150px" />
                                </telerik:GridTemplateColumn>
                                
                                
                                <telerik:GridTemplateColumn 
                                 DataField = "job_site_name"
                                AutoPostBackOnFilter="true" 
                                    CurrentFilterFunction="Contains" FilterControlWidth="100%" 
                                    HeaderText="สังกัด" ShowFilterIcon="False">
                                    <ItemTemplate>
                                        <%# Eval("job_site_name")%>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" Width="150px" />
                                </telerik:GridTemplateColumn>
                                
                                
                                
                                
                            </Columns>
                            <EditFormSettings EditFormType="WebUserControl" 
                                UserControlName="../UserControls/DC_Sanction2.ascx">
                                <EditColumn UniqueName="EditCommandColumn1">
                                </EditColumn>
                            </EditFormSettings>
                            <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                        </MasterTableView>
                        <ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" 
                            EnableRowHoverStyle="True" ReorderColumnsOnClient="True">
                            <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
                        </ClientSettings>
                    </telerik:RadGrid>
            </asp:Panel>
        <br />
    </form>
</body>
</html>
